function renderFriendList(fListNode, fArray, profile_owner) {
    for (var i = 0; i < fArray.length; i++) {
        var friend = fArray[i];
        if (friend.uid != profile_owner) {
            var friendDiv = document.createElement('div');
            friendDiv.className = 'a_friend';
            var markup = '';
            markup += '<div class=\"friend_name\"><a href=\"/profile?id=' + friend.uid + '\">';
            markup += friend.name + '</a></div>';
            markup += '<div class=\"friend_pic\"><a href=\"/profile?id=' + friend.uid + '\">';
            markup += '<img src=\"' + friend.tinyurl + '\"/>';
            markup += '</a></div>';
            friendDiv.innerHTML = markup;
            fListNode.appendChild(friendDiv);
        }
    }
}